home *** CD-ROM | disk | FTP | other *** search
/ Trusted Irix /B 4.0.4 / Trusted-Irix B-4.0.1.iso / dist / eoe1.idb / etc / single.z / single
Text File  |  1992-04-03  |  316b  |  23 lines

  1. #! /bin/sh
  2. #Tag 0x00000f00
  3. #
  4. # Take the system single user.  This is a nop if the system is already
  5. # single user.
  6. #
  7. # $Revision: 1.3 $
  8.  
  9. if test -n "$REMOTEHOST"; then
  10.     echo "Shutdown `hostname`?  \c"
  11.     read reply
  12.     case "$reply" in
  13.     [yY]*)
  14.         ;;
  15.     *)
  16.         echo "'single' cancelled."
  17.         exit 0
  18.         ;;
  19.     esac
  20. fi
  21.  
  22. /etc/telinit s
  23.